{% extends 'base.html' %}

{% block contents %}

<p>[Account]</p>
{% for object in accounts %}
<p>[
    <a href=/account/view/{{object.key}}>看</a>    
    <a href=/account/edit/{{object.key}}>改</a> 
    <a href=/account/delete/{{object.key}}>刪</a>
    ]
    {{ object.user }}/{{ object.name }}/{{ object.initialValue }}/{{ object.accountType }}/{{ object.createdDatetime }}</p>
{% endfor %}

<p>[Category]</p>
{% for object in categories %}
<p>[
    <a href=/category/view/{{object.key}}>看</a>    
    <a href=/category/edit/{{object.key}}>改</a> 
    <a href=/category/delete/{{object.key}}>刪</a>
    ]{{ object.user }}/{{ object.name }}/{{ object.order }}/{{ object.createdDatetime }}</p>
{% endfor %}

<p>[Record]</p>
{% for object in records %}
<p>[
    <a href=/record/view/{{object.key}}>看</a>    
    <a href=/record/edit/{{object.key}}>改</a> 
    <a href=/record/delete/{{object.key}}>刪</a>
    ]{{ object.account }}/{{ object.action }}/{{ object.value }}/{{ object.recordDate }}/{{ object.reason }}/{{ object.category}}/{{ object.createdDatetime}}</p>
{% endfor %}

<p>[Transaction]</p>
{% for object in transactions %}
<p>[
    <a href=/record/view/{{object.key}}>看</a>    
    <a href=/record/edit/{{object.key}}>改</a> 
    <a href=/record/delete/{{object.key}}>刪</a>
    ]{{ object.sourceAccount.key }}/{{ object.sourceRecord.key }}/{{ object.destinationAccount.key }}/{{ object.destinationRecord.key }}</p>
{% endfor %}


{% endblock %}